﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.Collections.Generic;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category6
{
  public class MT643 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagSequenceDefinition U0002;
    private static SwiftTagDefinition U0003;
    private static SwiftTagSubItemDefinition U0004;
    private static SwiftTagDefinition U0005;
    private static SwiftTagSubItemDefinition U0006;
    private static SwiftTagChoiceDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagSubItemDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagDefinition U0015;
    private static SwiftTagDefinition U0016;
    private static SwiftTagDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagSubItemDefinition U001D;
    private static SwiftTagSequenceDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagSubItemDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagSubItemDefinition U0088;
    private static SwiftTagDefinition U0089;
    private static SwiftTagSubItemDefinition U008A;
    private static SwiftTagSubItemDefinition U008B;
    private static SwiftTagSubItemDefinition U008C;
    private static SwiftTagChoiceDefinition U008D;
    private static SwiftTagDefinition U008E;
    private static SwiftTagSubItemDefinition U008F;
    private static SwiftTagSubItemDefinition U0090;
    private static SwiftTagSubItemDefinition U0091;
    private static SwiftTagDefinition U0092;
    private static SwiftTagSubItemDefinition U0093;
    private static SwiftTagSubItemDefinition U0094;
    private static SwiftTagSubItemDefinition U0095;
    private static SwiftTagDefinition U0096;
    private static SwiftTagSubItemDefinition U0097;
    private static SwiftTagSubItemDefinition U0098;
    private static SwiftTagSubItemDefinition U0099;
    private static SwiftTagSubItemDefinition U009A;
    private static SwiftTagSubItemDefinition U009B;
    private static SwiftTagSubItemDefinition U009C;
    private static SwiftTagChoiceDefinition U009D;
    private static SwiftTagDefinition U009E;
    private static SwiftTagSubItemDefinition U009F;
    private static SwiftTagSubItemDefinition U0001U0002;
    private static SwiftTagSubItemDefinition U0002U0002;
    private static SwiftTagDefinition U0003U0002;
    private static SwiftTagSubItemDefinition U0004U0002;
    private static SwiftTagSubItemDefinition U0005U0002;
    private static SwiftTagSubItemDefinition U0006U0002;
    private static SwiftTagChoiceDefinition U0007U0002;
    private static SwiftTagDefinition U0008U0002;
    private static SwiftTagSubItemDefinition U000EU0002;
    private static SwiftTagSubItemDefinition U000FU0002;
    private static SwiftTagDefinition U0010U0002;
    private static SwiftTagSubItemDefinition U0011U0002;
    private static SwiftTagSubItemDefinition U0012U0002;
    private static SwiftTagDefinition U0013U0002;
    private static SwiftTagSubItemDefinition U0014U0002;
    private static SwiftTagSubItemDefinition U0015U0002;
    private static SwiftTagDefinition U0016U0002;
    private static SwiftTagSequenceDefinition U0017U0002;
    private static SwiftTagDefinition U0018U0002;
    private static SwiftTagSubItemDefinition U0019U0002;
    private static SwiftTagSubItemDefinition U001AU0002;
    private static SwiftTagDefinition U001BU0002;
    private static SwiftTagSubItemDefinition U001CU0002;
    private static SwiftTagDefinition U001DU0002;
    private static SwiftTagSubItemDefinition U001EU0002;
    private static SwiftTagSubItemDefinition U001FU0002;
    private static SwiftTagSubItemDefinition U007FU0002;
    private static SwiftTagSubItemDefinition U0080U0002;
    private static SwiftTagSubItemDefinition U0081U0002;
    private static SwiftTagSubItemDefinition U0082U0002;
    private static SwiftTagDefinition U0083U0002;
    private static SwiftTagSubItemDefinition U0084U0002;
    private static SwiftTagSubItemDefinition U0086U0002;
    private static SwiftTagSubItemDefinition U0087U0002;
    private static SwiftTagDefinition U0088U0002;
    private static SwiftTagSubItemDefinition U0089U0002;
    private static SwiftTagSubItemDefinition U008AU0002;
    private static SwiftTagDefinition U008BU0002;
    private static SwiftTagSubItemDefinition U008CU0002;
    private static SwiftTagSubItemDefinition U008DU0002;
    private static SwiftTagChoiceDefinition U008EU0002;
    private static SwiftTagDefinition U008FU0002;
    private static SwiftTagSubItemDefinition U0090U0002;
    private static SwiftTagSubItemDefinition U0091U0002;
    private static SwiftTagDefinition U0092U0002;
    private static SwiftTagSubItemDefinition U0093U0002;
    private static SwiftTagSubItemDefinition U0094U0002;
    private static SwiftTagDefinition U0095U0002;
    private static SwiftTagSubItemDefinition U0096U0002;
    private static SwiftTagSubItemDefinition U0097U0002;
    private static SwiftTagDefinition U0098U0002;

    [Description("Identification of the Facility")]
    public MT643.SequenceAClass SequenceA
    {
      get
      {
        return new MT643.SequenceAClass((SwiftElement) this, 0, false);
      }
    }

    [Description("Existing Drawings")]
    public MT643.SequenceBClass[] SequenceB
    {
      get
      {
        int index = -1;
        List<MT643.SequenceBClass> list = new List<MT643.SequenceBClass>();
        int count;
        do
        {
          ++index;
          MT643.SequenceBClass sequenceBclass = new MT643.SequenceBClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceBclass).Count;
          if (count > 0)
            list.Add(sequenceBclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    [Description("New Drawing(s)")]
    public MT643.SequenceCClass[] SequenceC
    {
      get
      {
        int index = -1;
        List<MT643.SequenceCClass> list = new List<MT643.SequenceCClass>();
        int count;
        do
        {
          ++index;
          MT643.SequenceCClass sequenceCclass = new MT643.SequenceCClass((SwiftElement) this, index, false);
          count = this.ListTags((SwiftElement) sequenceCclass).Count;
          if (count > 0)
            list.Add(sequenceCclass);
        }
        while (count > 0);
        return list.ToArray();
      }
    }

    public MT643()
      : base(true)
    {
    }

    public MT643(SwiftMessage message)
      : base(message)
    {
    }

    public MT643.SequenceBClass AddSequenceB()
    {
      return new MT643.SequenceBClass((SwiftElement) this, this.SequenceB.Length, true);
    }

    public void RemoveSequenceB(MT643.SequenceBClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    public MT643.SequenceCClass AddSequenceC()
    {
      return new MT643.SequenceCClass((SwiftElement) this, this.SequenceC.Length, true);
    }

    public void RemoveSequenceC(MT643.SequenceCClass sequence)
    {
      foreach (SwiftTag tag in this.ListTags((SwiftElement) sequence))
        this.RemoveTag(tag);
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT643.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT643.MessageDefinition = new SwiftMessageDefinition("MT643", "Notice of Drawdown/Renewal");
      MT643.U0002 = new SwiftTagSequenceDefinition("SequenceA", "Identification of the Facility");
      MT643.U0003 = new SwiftTagDefinition("TransactionReferenceNumber_A_20", "Transaction Reference Number");
      MT643.U0003.TagName = ":20:";
      MT643.U0004 = new SwiftTagSubItemDefinition("Reference", "Transaction Reference Number");
      MT643.U0003.Elements.Add((SwiftDefinitionElement) MT643.U0004);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0003);
      MT643.U0005 = new SwiftTagDefinition("RelatedReference_A_21", "Related Reference");
      MT643.U0005.TagName = ":21:";
      MT643.U0005.Mandatory = false;
      MT643.U0006 = new SwiftTagSubItemDefinition("Reference", "Related Reference");
      MT643.U0005.Elements.Add((SwiftDefinitionElement) MT643.U0006);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0005);
      MT643.U0007 = new SwiftTagChoiceDefinition("Choice", "");
      MT643.U0007.Multiple = true;
      MT643.U0008 = new SwiftTagDefinition("FurtherIdentification_A_23", "Further Identification");
      MT643.U0008.TagName = ":23:";
      MT643.U000E = new SwiftTagSubItemDefinition("TypeOfTransaction", "Type Of Transaction");
      MT643.U0008.Elements.Add((SwiftDefinitionElement) MT643.U000E);
      MT643.U000F = new SwiftTagSubItemDefinition("Function", "Function");
      MT643.U0008.Elements.Add((SwiftDefinitionElement) MT643.U000F);
      MT643.U0007.Elements.Add((SwiftDefinitionElement) MT643.U0008);
      MT643.U0010 = new SwiftTagDefinition("FurtherIdentification_A_23_16x", "Further Identification");
      MT643.U0010.TagName = ":23:";
      MT643.U0011 = new SwiftTagSubItemDefinition("FurtherIdentificationAndFunction", "Further Identification And Function");
      MT643.U0010.Elements.Add((SwiftDefinitionElement) MT643.U0011);
      MT643.U0007.Elements.Add((SwiftDefinitionElement) MT643.U0010);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0007);
      MT643.U0012 = new SwiftTagDefinition("SequenceOfTotal_A_27", "Sequence Of Total");
      MT643.U0012.TagName = ":27:";
      MT643.U0012.Mandatory = false;
      MT643.U0013 = new SwiftTagSubItemDefinition("Number", "Number");
      MT643.U0012.Elements.Add((SwiftDefinitionElement) MT643.U0013);
      MT643.U0014 = new SwiftTagSubItemDefinition("Total", "Total");
      MT643.U0012.Elements.Add((SwiftDefinitionElement) MT643.U0014);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0012);
      MT643.U0015 = new SwiftTagDefinition("From_A_29A", "From");
      MT643.U0015.TagName = ":29A:";
      MT643.U0015.Mandatory = false;
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0015);
      MT643.U0016 = new SwiftTagDefinition("ToTheAttentionOf_A_29B", "To The Attention Of");
      MT643.U0016.TagName = ":29B:";
      MT643.U0016.Mandatory = false;
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0016);
      MT643.U0017 = new SwiftTagDefinition("Borrowers_A_88D", "Borrower(s)");
      MT643.U0017.TagName = ":88D:";
      MT643.U0018 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0018.Mandatory = false;
      MT643.U0017.Elements.Add((SwiftDefinitionElement) MT643.U0018);
      MT643.U0019 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT643.U0017.Elements.Add((SwiftDefinitionElement) MT643.U0019);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U0017);
      MT643.U001A = new SwiftTagDefinition("OriginalFacilityAmount_A_32A", "Original Facility Amount");
      MT643.U001A.TagName = ":32A:";
      MT643.U001B = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U001A.Elements.Add((SwiftDefinitionElement) MT643.U001B);
      MT643.U001C = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U001A.Elements.Add((SwiftDefinitionElement) MT643.U001C);
      MT643.U001D = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U001A.Elements.Add((SwiftDefinitionElement) MT643.U001D);
      MT643.U0002.Elements.Add((SwiftDefinitionElement) MT643.U001A);
      MT643.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT643.U0002);
      MT643.U001E = new SwiftTagSequenceDefinition("SequenceB", "Existing Drawings");
      MT643.U001E.Mandatory = false;
      MT643.U001E.Multiple = true;
      MT643.U001F = new SwiftTagDefinition("DrawingIdentification_B_26P", "Drawing Identification");
      MT643.U001F.TagName = ":26P:";
      MT643.U007F = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U001F.Elements.Add((SwiftDefinitionElement) MT643.U007F);
      MT643.U0080 = new SwiftTagSubItemDefinition("Identification", "Identification");
      MT643.U001F.Elements.Add((SwiftDefinitionElement) MT643.U0080);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U001F);
      MT643.U0081 = new SwiftTagDefinition("DrawdownPeriod_B_31F", "Drawdown Period");
      MT643.U0081.TagName = ":31F:";
      MT643.U0081.Mandatory = false;
      MT643.U0082 = new SwiftTagSubItemDefinition("DrawdownPeriod", "Drawdown Period");
      MT643.U0083 = new SwiftTagSubItemDefinition("StartDate", "Start Date");
      MT643.U0082.Elements.Add((SwiftDefinitionElement) MT643.U0083);
      MT643.U0084 = new SwiftTagSubItemDefinition("EndDate", "End Date");
      MT643.U0084.Mandatory = false;
      MT643.U0086 = new SwiftTagSubItemDefinition("EndDate_1", "End Date");
      MT643.U0084.Elements.Add((SwiftDefinitionElement) MT643.U0086);
      MT643.U0082.Elements.Add((SwiftDefinitionElement) MT643.U0084);
      MT643.U0081.Elements.Add((SwiftDefinitionElement) MT643.U0082);
      MT643.U0087 = new SwiftTagSubItemDefinition("Origin", "Origin");
      MT643.U0087.Mandatory = false;
      MT643.U0088 = new SwiftTagSubItemDefinition("Origin_1", "Origin");
      MT643.U0087.Elements.Add((SwiftDefinitionElement) MT643.U0088);
      MT643.U0081.Elements.Add((SwiftDefinitionElement) MT643.U0087);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U0081);
      MT643.U0089 = new SwiftTagDefinition("RepaymentOfPrincipal_B_32P", "Repayment Of Principal");
      MT643.U0089.TagName = ":32P:";
      MT643.U0089.Mandatory = false;
      MT643.U008A = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U0089.Elements.Add((SwiftDefinitionElement) MT643.U008A);
      MT643.U008B = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U0089.Elements.Add((SwiftDefinitionElement) MT643.U008B);
      MT643.U008C = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U0089.Elements.Add((SwiftDefinitionElement) MT643.U008C);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U0089);
      MT643.U008D = new SwiftTagChoiceDefinition("Choice", "");
      MT643.U008D.Multiple = true;
      MT643.U008E = new SwiftTagDefinition("InterestAmount_B_33P", "Interest Amount");
      MT643.U008E.TagName = ":33P:";
      MT643.U008F = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U008E.Elements.Add((SwiftDefinitionElement) MT643.U008F);
      MT643.U0090 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U008E.Elements.Add((SwiftDefinitionElement) MT643.U0090);
      MT643.U0091 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U008E.Elements.Add((SwiftDefinitionElement) MT643.U0091);
      MT643.U008D.Elements.Add((SwiftDefinitionElement) MT643.U008E);
      MT643.U0092 = new SwiftTagDefinition("InterestAmount_B_33R", "Interest Amount");
      MT643.U0092.TagName = ":33R:";
      MT643.U0093 = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U0092.Elements.Add((SwiftDefinitionElement) MT643.U0093);
      MT643.U0094 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U0092.Elements.Add((SwiftDefinitionElement) MT643.U0094);
      MT643.U0095 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U0092.Elements.Add((SwiftDefinitionElement) MT643.U0095);
      MT643.U008D.Elements.Add((SwiftDefinitionElement) MT643.U0092);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U008D);
      MT643.U0096 = new SwiftTagDefinition("DetailsOfAdjustments_B_71C", "DetailsOfAdjustments_B_71C");
      MT643.U0096.TagName = ":71C:";
      MT643.U0096.Mandatory = false;
      MT643.U0097 = new SwiftTagSubItemDefinition("Line1", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x]");
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U0097);
      MT643.U0098 = new SwiftTagSubItemDefinition("Line2", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT643.U0098.Mandatory = false;
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U0098);
      MT643.U0099 = new SwiftTagSubItemDefinition("Line3", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT643.U0099.Mandatory = false;
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U0099);
      MT643.U009A = new SwiftTagSubItemDefinition("Line4", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT643.U009A.Mandatory = false;
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U009A);
      MT643.U009B = new SwiftTagSubItemDefinition("Line5", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT643.U009B.Mandatory = false;
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U009B);
      MT643.U009C = new SwiftTagSubItemDefinition("Line6", "Line with a maximum of 35 SWIFT characters having format as /8c/[25x] or [//33x]");
      MT643.U009C.Mandatory = false;
      MT643.U0096.Elements.Add((SwiftDefinitionElement) MT643.U009C);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U0096);
      MT643.U009D = new SwiftTagChoiceDefinition("Choice", "");
      MT643.U009D.Mandatory = false;
      MT643.U009D.Multiple = true;
      MT643.U009E = new SwiftTagDefinition("NetInterestAmount_B_34P", "Net Interest Amount");
      MT643.U009E.TagName = ":34P:";
      MT643.U009F = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U009E.Elements.Add((SwiftDefinitionElement) MT643.U009F);
      MT643.U0001U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U009E.Elements.Add((SwiftDefinitionElement) MT643.U0001U0002);
      MT643.U0002U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U009E.Elements.Add((SwiftDefinitionElement) MT643.U0002U0002);
      MT643.U009D.Elements.Add((SwiftDefinitionElement) MT643.U009E);
      MT643.U0003U0002 = new SwiftTagDefinition("NetInterestAmount_B_34R", "Net Interest Amount");
      MT643.U0003U0002.TagName = ":34R:";
      MT643.U0004U0002 = new SwiftTagSubItemDefinition("Date", "Date");
      MT643.U0003U0002.Elements.Add((SwiftDefinitionElement) MT643.U0004U0002);
      MT643.U0005U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U0003U0002.Elements.Add((SwiftDefinitionElement) MT643.U0005U0002);
      MT643.U0006U0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U0003U0002.Elements.Add((SwiftDefinitionElement) MT643.U0006U0002);
      MT643.U009D.Elements.Add((SwiftDefinitionElement) MT643.U0003U0002);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U009D);
      MT643.U0007U0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT643.U0007U0002.Mandatory = false;
      MT643.U0007U0002.Multiple = true;
      MT643.U0008U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57A", "Account With Institution");
      MT643.U0008U0002.TagName = ":57A:";
      MT643.U000EU0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U000EU0002.Mandatory = false;
      MT643.U0008U0002.Elements.Add((SwiftDefinitionElement) MT643.U000EU0002);
      MT643.U000FU0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT643.U0008U0002.Elements.Add((SwiftDefinitionElement) MT643.U000FU0002);
      MT643.U0007U0002.Elements.Add((SwiftDefinitionElement) MT643.U0008U0002);
      MT643.U0010U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57B", "Account With Institution");
      MT643.U0010U0002.TagName = ":57B:";
      MT643.U0011U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0011U0002.Mandatory = false;
      MT643.U0010U0002.Elements.Add((SwiftDefinitionElement) MT643.U0011U0002);
      MT643.U0012U0002 = new SwiftTagSubItemDefinition("Location", "Location");
      MT643.U0012U0002.Mandatory = false;
      MT643.U0010U0002.Elements.Add((SwiftDefinitionElement) MT643.U0012U0002);
      MT643.U0007U0002.Elements.Add((SwiftDefinitionElement) MT643.U0010U0002);
      MT643.U0013U0002 = new SwiftTagDefinition("AccountWithInstitution_B_57D", "Account With Institution");
      MT643.U0013U0002.TagName = ":57D:";
      MT643.U0014U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0014U0002.Mandatory = false;
      MT643.U0013U0002.Elements.Add((SwiftDefinitionElement) MT643.U0014U0002);
      MT643.U0015U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT643.U0013U0002.Elements.Add((SwiftDefinitionElement) MT643.U0015U0002);
      MT643.U0007U0002.Elements.Add((SwiftDefinitionElement) MT643.U0013U0002);
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U0007U0002);
      MT643.U0016U0002 = new SwiftTagDefinition("SenderToReceiverInformation_B_72", "Sender To Receiver Information");
      MT643.U0016U0002.TagName = ":72:";
      MT643.U0016U0002.Mandatory = false;
      MT643.U001E.Elements.Add((SwiftDefinitionElement) MT643.U0016U0002);
      MT643.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT643.U001E);
      MT643.U0017U0002 = new SwiftTagSequenceDefinition("SequenceC", "New Drawing(s)");
      MT643.U0017U0002.Multiple = true;
      MT643.U0018U0002 = new SwiftTagDefinition("DrawingIdentification_C_26N", "Drawing Identification(New)");
      MT643.U0018U0002.TagName = ":26N:";
      MT643.U0019U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U0018U0002.Elements.Add((SwiftDefinitionElement) MT643.U0019U0002);
      MT643.U001AU0002 = new SwiftTagSubItemDefinition("Identification", "Identification");
      MT643.U0018U0002.Elements.Add((SwiftDefinitionElement) MT643.U001AU0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U0018U0002);
      MT643.U001BU0002 = new SwiftTagDefinition("SelectedCurrency_C_32E", "Selected Currency");
      MT643.U001BU0002.TagName = ":32E:";
      MT643.U001BU0002.Mandatory = false;
      MT643.U001CU0002 = new SwiftTagSubItemDefinition("Currency", "Selected Currency");
      MT643.U001BU0002.Elements.Add((SwiftDefinitionElement) MT643.U001CU0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U001BU0002);
      MT643.U001DU0002 = new SwiftTagDefinition("DrawdownPeriod_C_31F", "Drawdown Period");
      MT643.U001DU0002.TagName = ":31F:";
      MT643.U001EU0002 = new SwiftTagSubItemDefinition("DrawdownPeriod", "Drawdown Period");
      MT643.U001FU0002 = new SwiftTagSubItemDefinition("StartDate", "Start Date");
      MT643.U001EU0002.Elements.Add((SwiftDefinitionElement) MT643.U001FU0002);
      MT643.U007FU0002 = new SwiftTagSubItemDefinition("EndDate", "End Date");
      MT643.U007FU0002.Mandatory = false;
      MT643.U0080U0002 = new SwiftTagSubItemDefinition("EndDate_1", "End Date");
      MT643.U007FU0002.Elements.Add((SwiftDefinitionElement) MT643.U0080U0002);
      MT643.U001EU0002.Elements.Add((SwiftDefinitionElement) MT643.U007FU0002);
      MT643.U001DU0002.Elements.Add((SwiftDefinitionElement) MT643.U001EU0002);
      MT643.U0081U0002 = new SwiftTagSubItemDefinition("Origin", "Origin");
      MT643.U0081U0002.Mandatory = false;
      MT643.U0082U0002 = new SwiftTagSubItemDefinition("Origin_1", "Origin");
      MT643.U0081U0002.Elements.Add((SwiftDefinitionElement) MT643.U0082U0002);
      MT643.U001DU0002.Elements.Add((SwiftDefinitionElement) MT643.U0081U0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U001DU0002);
      MT643.U0083U0002 = new SwiftTagDefinition("RateFixingDate_C_31R", "Rate Fixing Date");
      MT643.U0083U0002.TagName = ":31R:";
      MT643.U0083U0002.Mandatory = false;
      MT643.U0084U0002 = new SwiftTagSubItemDefinition("Date1", "Date1");
      MT643.U0083U0002.Elements.Add((SwiftDefinitionElement) MT643.U0084U0002);
      MT643.U0086U0002 = new SwiftTagSubItemDefinition("Date2", "Date2");
      MT643.U0086U0002.Mandatory = false;
      MT643.U0087U0002 = new SwiftTagSubItemDefinition("Date2_1", "Date2");
      MT643.U0086U0002.Elements.Add((SwiftDefinitionElement) MT643.U0087U0002);
      MT643.U0083U0002.Elements.Add((SwiftDefinitionElement) MT643.U0086U0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U0083U0002);
      MT643.U0088U0002 = new SwiftTagDefinition("AmountOfDrawdown_C_32B", "Amount Of Drawdown");
      MT643.U0088U0002.TagName = ":32B:";
      MT643.U0089U0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U0088U0002.Elements.Add((SwiftDefinitionElement) MT643.U0089U0002);
      MT643.U008AU0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U0088U0002.Elements.Add((SwiftDefinitionElement) MT643.U008AU0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U0088U0002);
      MT643.U008BU0002 = new SwiftTagDefinition("ReceiversParticipation_C_33B", "Receivers Participation");
      MT643.U008BU0002.TagName = ":33B:";
      MT643.U008CU0002 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT643.U008BU0002.Elements.Add((SwiftDefinitionElement) MT643.U008CU0002);
      MT643.U008DU0002 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT643.U008BU0002.Elements.Add((SwiftDefinitionElement) MT643.U008DU0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U008BU0002);
      MT643.U008EU0002 = new SwiftTagChoiceDefinition("Choice", "");
      MT643.U008EU0002.Mandatory = false;
      MT643.U008EU0002.Multiple = true;
      MT643.U008FU0002 = new SwiftTagDefinition("AccountWithInstitution_C_57A", "Account With Institution");
      MT643.U008FU0002.TagName = ":57A:";
      MT643.U0090U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0090U0002.Mandatory = false;
      MT643.U008FU0002.Elements.Add((SwiftDefinitionElement) MT643.U0090U0002);
      MT643.U0091U0002 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT643.U008FU0002.Elements.Add((SwiftDefinitionElement) MT643.U0091U0002);
      MT643.U008EU0002.Elements.Add((SwiftDefinitionElement) MT643.U008FU0002);
      MT643.U0092U0002 = new SwiftTagDefinition("AccountWithInstitution_C_57B", "Account With Institution");
      MT643.U0092U0002.TagName = ":57B:";
      MT643.U0093U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0093U0002.Mandatory = false;
      MT643.U0092U0002.Elements.Add((SwiftDefinitionElement) MT643.U0093U0002);
      MT643.U0094U0002 = new SwiftTagSubItemDefinition("Location", "Location");
      MT643.U0094U0002.Mandatory = false;
      MT643.U0092U0002.Elements.Add((SwiftDefinitionElement) MT643.U0094U0002);
      MT643.U008EU0002.Elements.Add((SwiftDefinitionElement) MT643.U0092U0002);
      MT643.U0095U0002 = new SwiftTagDefinition("AccountWithInstitution_C_57D", "Account With Institution");
      MT643.U0095U0002.TagName = ":57D:";
      MT643.U0096U0002 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT643.U0096U0002.Mandatory = false;
      MT643.U0095U0002.Elements.Add((SwiftDefinitionElement) MT643.U0096U0002);
      MT643.U0097U0002 = new SwiftTagSubItemDefinition("NameAndAddress", "Name And Address");
      MT643.U0095U0002.Elements.Add((SwiftDefinitionElement) MT643.U0097U0002);
      MT643.U008EU0002.Elements.Add((SwiftDefinitionElement) MT643.U0095U0002);
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U008EU0002);
      MT643.U0098U0002 = new SwiftTagDefinition("SenderToReceiverInformation_C_72", "Sender To Receiver Information");
      MT643.U0098U0002.TagName = ":72:";
      MT643.U0098U0002.Mandatory = false;
      MT643.U0017U0002.Elements.Add((SwiftDefinitionElement) MT643.U0098U0002);
      MT643.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT643.U0017U0002);
    }

    public class SequenceAClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT643.U0002;
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 TransactionReferenceNumber_A_20
      {
        get
        {
          return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0003);
        }
      }

      [Description("Transaction Reference Number")]
      public Tag20 Tag20_TransactionReferenceNumber_A
      {
        get
        {
          return this.TransactionReferenceNumber_A_20;
        }
      }

      [Description("Related Reference")]
      public Tag21 RelatedReference_A_21
      {
        get
        {
          return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0005);
        }
      }

      [Description("Related Reference")]
      public Tag21 Tag21_RelatedReference_A
      {
        get
        {
          return this.RelatedReference_A_21;
        }
      }

      [Description("Further Identification")]
      public MT643.SequenceAClass.Tag23 FurtherIdentification_A_23
      {
        get
        {
          return new MT643.SequenceAClass.Tag23((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0008);
        }
      }

      [Description("Further Identification")]
      public MT643.SequenceAClass.Tag23 Tag23_FurtherIdentification_A
      {
        get
        {
          return this.FurtherIdentification_A_23;
        }
      }

      [Description("Further Identification")]
      public Tag16x FurtherIdentification_A_23_16x
      {
        get
        {
          return new Tag16x((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0010);
        }
      }

      [Description("Further Identification")]
      public Tag16x Tag16x_FurtherIdentification_A_23
      {
        get
        {
          return this.FurtherIdentification_A_23_16x;
        }
      }

      [Description("Sequence Of Total")]
      public Tag27 SequenceOfTotal_A_27
      {
        get
        {
          return new Tag27((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0012);
        }
      }

      [Description("Sequence Of Total")]
      public Tag27 Tag27_SequenceOfTotal_A
      {
        get
        {
          return this.SequenceOfTotal_A_27;
        }
      }

      [Description("From")]
      public Tag29A From_A_29A
      {
        get
        {
          return new Tag29A((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0015);
        }
      }

      [Description("From")]
      public Tag29A Tag29A_From_A
      {
        get
        {
          return this.From_A_29A;
        }
      }

      [Description("To The Attention Of")]
      public Tag29B ToTheAttentionOf_A_29B
      {
        get
        {
          return new Tag29B((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0016);
        }
      }

      [Description("To The Attention Of")]
      public Tag29B Tag29B_ToTheAttentionOf_A
      {
        get
        {
          return this.ToTheAttentionOf_A_29B;
        }
      }

      [Description("Borrower(s)")]
      public MT643.SequenceAClass.Tag88D Borrowers_A_88D
      {
        get
        {
          return new MT643.SequenceAClass.Tag88D((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0017);
        }
      }

      [Description("Borrower(s)")]
      public MT643.SequenceAClass.Tag88D Tag88D_Borrowers_A
      {
        get
        {
          return this.Borrowers_A_88D;
        }
      }

      [Description("Original Facility Amount")]
      public Tag32A OriginalFacilityAmount_A_32A
      {
        get
        {
          return new Tag32A((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U001A);
        }
      }

      [Description("Original Facility Amount")]
      public Tag32A Tag32A_OriginalFacilityAmount_A
      {
        get
        {
          return this.OriginalFacilityAmount_A_32A;
        }
      }

      internal SequenceAClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag23 : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("23", value);
          }
        }

        internal Tag23(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }

      public class Tag88D : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("88D", value);
          }
        }

        internal Tag88D(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceBClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT643.U001E;
        }
      }

      [Description("Drawing Identification")]
      public Tag26P DrawingIdentification_B_26P
      {
        get
        {
          return new Tag26P((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U001F);
        }
      }

      [Description("Drawing Identification")]
      public Tag26P Tag26P_DrawingIdentification_B
      {
        get
        {
          return this.DrawingIdentification_B_26P;
        }
      }

      [Description("Drawdown Period")]
      public MT643.SequenceBClass.Tag31F DrawdownPeriod_B_31F
      {
        get
        {
          return new MT643.SequenceBClass.Tag31F((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0081);
        }
      }

      [Description("Drawdown Period")]
      public MT643.SequenceBClass.Tag31F Tag31F_DrawdownPeriod_B
      {
        get
        {
          return this.DrawdownPeriod_B_31F;
        }
      }

      [Description("Repayment Of Principal")]
      public Tag32P RepaymentOfPrincipal_B_32P
      {
        get
        {
          return new Tag32P((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0089);
        }
      }

      [Description("Repayment Of Principal")]
      public Tag32P Tag32P_RepaymentOfPrincipal_B
      {
        get
        {
          return this.RepaymentOfPrincipal_B_32P;
        }
      }

      [Description("Interest Amount")]
      public Tag33P InterestAmount_B_33P
      {
        get
        {
          return new Tag33P((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U008E);
        }
      }

      [Description("Interest Amount")]
      public Tag33P Tag33P_InterestAmount_B
      {
        get
        {
          return this.InterestAmount_B_33P;
        }
      }

      [Description("Interest Amount")]
      public Tag33R InterestAmount_B_33R
      {
        get
        {
          return new Tag33R((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0092);
        }
      }

      [Description("Interest Amount")]
      public Tag33R Tag33R_InterestAmount_B
      {
        get
        {
          return this.InterestAmount_B_33R;
        }
      }

      [Description("DetailsOfAdjustments_B_71C")]
      public Tag71C DetailsOfAdjustments_B_71C
      {
        get
        {
          return new Tag71C((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0096);
        }
      }

      [Description("DetailsOfAdjustments_B_71C")]
      public Tag71C Tag71C_DetailsOfAdjustments_B
      {
        get
        {
          return this.DetailsOfAdjustments_B_71C;
        }
      }

      [Description("Net Interest Amount")]
      public Tag34P NetInterestAmount_B_34P
      {
        get
        {
          return new Tag34P((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U009E);
        }
      }

      [Description("Net Interest Amount")]
      public Tag34P Tag34P_NetInterestAmount_B
      {
        get
        {
          return this.NetInterestAmount_B_34P;
        }
      }

      [Description("Net Interest Amount")]
      public Tag34R NetInterestAmount_B_34R
      {
        get
        {
          return new Tag34R((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0003U0002);
        }
      }

      [Description("Net Interest Amount")]
      public Tag34R Tag34R_NetInterestAmount_B
      {
        get
        {
          return this.NetInterestAmount_B_34R;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_B_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0008U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57A;
        }
      }

      [Description("Account With Institution")]
      public Tag57B AccountWithInstitution_B_57B
      {
        get
        {
          return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0010U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57B Tag57B_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57B;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_B_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0013U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution_B
      {
        get
        {
          return this.AccountWithInstitution_B_57D;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToReceiverInformation_B_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0016U0002);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_B
      {
        get
        {
          return this.SenderToReceiverInformation_B_72;
        }
      }

      internal SequenceBClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag31F : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("31F", value);
          }
        }

        internal Tag31F(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }

    public class SequenceCClass : SwiftTagSequence
    {
      internal override SwiftDefinitionElement Definition
      {
        get
        {
          return (SwiftDefinitionElement) MT643.U0017U0002;
        }
      }

      [Description("Drawing Identification(New)")]
      public Tag26N DrawingIdentification_C_26N
      {
        get
        {
          return new Tag26N((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0018U0002);
        }
      }

      [Description("Drawing Identification(New)")]
      public Tag26N Tag26N_DrawingIdentification_C
      {
        get
        {
          return this.DrawingIdentification_C_26N;
        }
      }

      [Description("Selected Currency")]
      public Tag32E SelectedCurrency_C_32E
      {
        get
        {
          return new Tag32E((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U001BU0002);
        }
      }

      [Description("Selected Currency")]
      public Tag32E Tag32E_SelectedCurrency_C
      {
        get
        {
          return this.SelectedCurrency_C_32E;
        }
      }

      [Description("Drawdown Period")]
      public MT643.SequenceCClass.Tag31F DrawdownPeriod_C_31F
      {
        get
        {
          return new MT643.SequenceCClass.Tag31F((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U001DU0002);
        }
      }

      [Description("Drawdown Period")]
      public MT643.SequenceCClass.Tag31F Tag31F_DrawdownPeriod_C
      {
        get
        {
          return this.DrawdownPeriod_C_31F;
        }
      }

      [Description("Rate Fixing Date")]
      public Tag31R RateFixingDate_C_31R
      {
        get
        {
          return new Tag31R((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0083U0002);
        }
      }

      [Description("Rate Fixing Date")]
      public Tag31R Tag31R_RateFixingDate_C
      {
        get
        {
          return this.RateFixingDate_C_31R;
        }
      }

      [Description("Amount Of Drawdown")]
      public Tag32B AmountOfDrawdown_C_32B
      {
        get
        {
          return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0088U0002);
        }
      }

      [Description("Amount Of Drawdown")]
      public Tag32B Tag32B_AmountOfDrawdown_C
      {
        get
        {
          return this.AmountOfDrawdown_C_32B;
        }
      }

      [Description("Receivers Participation")]
      public Tag33B ReceiversParticipation_C_33B
      {
        get
        {
          return new Tag33B((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U008BU0002);
        }
      }

      [Description("Receivers Participation")]
      public Tag33B Tag33B_ReceiversParticipation_C
      {
        get
        {
          return this.ReceiversParticipation_C_33B;
        }
      }

      [Description("Account With Institution")]
      public Tag57A AccountWithInstitution_C_57A
      {
        get
        {
          return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U008FU0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57A Tag57A_AccountWithInstitution_C
      {
        get
        {
          return this.AccountWithInstitution_C_57A;
        }
      }

      [Description("Account With Institution")]
      public Tag57B AccountWithInstitution_C_57B
      {
        get
        {
          return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0092U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57B Tag57B_AccountWithInstitution_C
      {
        get
        {
          return this.AccountWithInstitution_C_57B;
        }
      }

      [Description("Account With Institution")]
      public Tag57D AccountWithInstitution_C_57D
      {
        get
        {
          return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0095U0002);
        }
      }

      [Description("Account With Institution")]
      public Tag57D Tag57D_AccountWithInstitution_C
      {
        get
        {
          return this.AccountWithInstitution_C_57D;
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 SenderToReceiverInformation_C_72
      {
        get
        {
          return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT643.U0098U0002);
        }
      }

      [Description("Sender To Receiver Information")]
      public Tag72 Tag72_SenderToReceiverInformation_C
      {
        get
        {
          return this.SenderToReceiverInformation_C_72;
        }
      }

      internal SequenceCClass(SwiftElement parent, int index, bool createTags)
        : base(parent, index, createTags)
      {
      }

      public class Tag31F : SwiftTagWrapper
      {
        public string Value
        {
          get
          {
            return this.GetValue();
          }
          set
          {
            this.SetValue("31F", value);
          }
        }

        internal Tag31F(SwiftElement parent, int index, SwiftDefinitionElement definition)
          : base(parent, index, definition)
        {
        }
      }
    }
  }
}
